#import "head.h"

@class LayerDialog;

#define ACTION_TYPE_SCALE_X 0
#define ACTION_TYPE_SCALE_Y 1
#define ACTION_TYPE_SCALE_XY 2

@interface SpriteDialog : CCSprite
{
	LayerDialog *handleLayer_;

	int actionType_;
	CGRect backgroundRect_;
}

@property (nonatomic,readwrite,assign) LayerDialog *handleLayer;

- (id)initSpriteDialog;
- (void)draw;

- (void)touchBegan:(CGPoint) Point;
- (void)touchMoved:(CGPoint) Point;
- (void)touchEnded:(CGPoint) Point;

- (void)actionOpen;
- (void)actionClose;

- (void)actionOpenOver;
- (void)actionCloseOver;

- (void)callBackOpenOver;
- (void)callBackCloseOver;

@end